home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 September
/
PCWorld_2006-09_cd.bin
/
v cisle
/
hexer
/
mpth_17.exe
/
{app}
/
scripts
/
start-stop
/
finish.mps
next >
Wrap
Text File
|
2005-05-22
|
696b
|
36 lines
INCLUDE 'def.mps'
OPTION UNDO, 0
call DEC_TEXT_CONV
errorhandler ateof
DEF reg envparse("%appregkey%\\openfiles")
option globalvars 1
var filenames text
= store the filenames of all open files in the registry
regwrite reg
regwrite reg "active" currentfile
if file_count > 0
loop writefile file_count
endif
regwrite reg "files" filenames
@@ateof
end
@@writefile
var fn text
var f file
fn = files(loop)
= write selstart, selend
f = fileopen('::'+fn, 'r')
if filegetprop(f, 'HasFile')
filenames = filenames+"\n"+fn
regwrite reg fn+":selstart" filegetprop(f,'selstart')
regwrite reg fn+":selcount" filegetprop(f,'selcount')
endif
fileclose f
return